package com.songlanyun.modules.studying.model;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.songlanyun.common.drive.RootEntity;
import com.songlanyun.common.drive.ValueObject;
import com.songlanyun.modules.studyingDetail.entity.StudyingDetail;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

@Data
public class StudyingVO implements ValueObject, Serializable {

    {
        studyingDetailCount = 0;
        studyingClick = 0;
        studyingLength = BigDecimal.ZERO;
    }
    /**
     * id
     */
    private Long id;
    /**
     * 课程名称
     */
    private String studyName;
    /**
     * 课程封面
     */
    private String studyUrl;
    /**
     * 讲师名字
     */
    private String studyTeacher;
    /**
     * 所属分类
     */
    private Long studyType;
    /**
     * 课程详情
     */
    private String studyContent;
    /**
     * vip专享
     */
    private Boolean hasVip;
    /**
     * 序号
     */
    private Integer hasOrder;
    /**
     * 状态 0下架 1上架 默认1
     */
    private Boolean hasStatus;
    /**
     * 是否推荐0否1是默认0
     */
    private Boolean hasHeader;
    /**
     *
     */
    private Date createTime;
    /**
     *
     */
    private Date updateTime;
    /**
     * 分类名称
     */
    private String studyTypeName;
    /**
     * 课程章节总数
     */
    private Integer studyingDetailCount;
    /**
     * 点击量
     */
    private Integer studyingClick;
    /**
     * 课程时长
     */
    private BigDecimal studyingLength;

    /**
     * 课程中所有章节
     */
    List<StudyingDetail> studyingDetails;

}
